﻿@section header
{
    <link href="~/Themes/RongJi/Style/base/css/account.css" rel="stylesheet">
}
@section title
{
发表评价
}
<div id="equalize">
    @{
        Html.RenderPartial("MenuPartial");
    }
    <div class="col-right">
        <div class="wrapper-right">
            <header class="accountHeader">
                <i class="ping"></i>
                <h2>发表评论</h2>
            </header>
            <form id="publishCommentForm" action="~/MyAccount/PublishComment" method="POST">
                <dl class="section">
                    <dd class="sectionC">
                        <div class="item">
                            <label>商品图片：</label>
                            <a href="~/Product/ProductDetail?prd=@Model.Product.ProductId" class="links">
                                <img src="@Model.Product.ImageNameSize125" alt="@Model.Product.Title">
                            </a>
                        </div>
                        <div class="item">
                            <label>商品名称：</label>
                            <span>@Model.Product.Title</span>
                        </div>
                        <div class="item">
                            <label>商品描述：</label>
                            <span>@Model.Product.LineDescription</span>
                        </div>
                        <div class="item">
                            <label>星级：</label>
                            <div class="star-line inline">
                                <label class="re3" id="RatingLevel">
                                    <ul>
                                        <li onclick="selectRating(1,this)"></li>
                                        <li onclick="selectRating(2,this)"></li>
                                        <li onclick="selectRating(3,this)"></li>
                                        <li onclick="selectRating(4,this)"></li>
                                        <li onclick="selectRating(5,this)"></li>
                                    </ul>
                                    <span class="retext">中评</span>
                                </label>
                                <input type="hidden" name="Rating" id="txtRating" value="3">
                            </div>
                        </div>

                        <div class="item">
                            <label>标题：</label>
                            <input type="text" name="Title" class="cmnTInput" placeholder="请输入标题,最少2个字符" />
                            <span class="require">*</span>
                        </div>
                        <div class="item">
                            <label>优点：</label>
                            <input type="text" name="MeritText" class="cmnTInput" placeholder="请输入优点" />
                        </div>
                        <div class="item">
                            <label>不足：</label>
                            <input type="text" name="FaultsText" maxlength="20" class="cmnTInput" placeholder="请输入不足" />
                        </div>

                        <div class="item">
                            <label>评价内容：</label>
                            <textarea cols="40" name="Memo" rows="4" placeholder="请输入评价内容,最少6个字符" class="cmnTInput"></textarea>
                            <span class="require">*</span>
                        </div>
                          @if (Model.Result != null && !Model.Result.Status && Model.Result.ErrorMessage != null)
                            {
                                <div class="item">
                                <label></label>
                                <div class="error">@Model.Result.ErrorMessage</div>
                                     </div>
                            }
                        <div class="btnGroup">
                            <input type="hidden" name="OrderNumber" value="@Model.OrderNumber">
                            <input type="hidden" name="ProductId" value="@Model.Product.ProductId">
                            <input type="hidden" name="rating" id="txtRating" value="3">
                            <input type="submit" value="发表" class="rjbtn rjbtnGreen">
                        </div>
                    </dd>
                </dl>
            </form>
        </div>
    </div>
</div>
@section footer
{
    <script src="~/Themes/RongJi/Style/base/js/account.publishcomment.js"></script>
}
